﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DNA.Models.Disease>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Doenças</h2>
    <img src="http://localhost:61221/Content/themes/base/images/doenca.jpg" />
<p>
    <%: Html.ActionLink("Criar Novo", "Create") %>
    <%: Html.ActionLink("Importar", "Importar") %>
<br />

</p>


<table>
    <tr>
        <th>
            Name
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.Name) %>
        </td>
        <td>
            <%: Html.ActionLink("Editar", "Edit", new { id=item.Id }) %> |
            <%: Html.ActionLink("Detalhes", "Details", new { id=item.Id }) %> |
            <%: Html.ActionLink("Deletar", "Delete", new { id=item.Id }) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>
